
from Common.common import Common


class Login(Common):
    ele_登录 = 'text=登录'
    ele_username = '[placeholder="用户名"]'
    ele_password = '[placeholder="密码"]'
    ele_button = '#rectMask'

    def login(self,username,password):
        self.goto_url(self.adex_baseurl)
        self.click(self.ele_登录)
        self.input(self.ele_username,username)
        self.type(self.ele_password,password)
        self.click(self.ele_button)
        self.wait_for_timeout(3000)

